-
Notifications
You must be signed in to change notification settings - Fork 730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Adjust reading package to return null if Logo not specified #12753
Conversation
751c0c8
to
1025db7
Compare
The build 84428 found UI Test snapshots differences: Details
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with minor stylistic comments that you are not important.
GitHub Issue (If applicable): closes #12752
PR Type
What kind of change does this PR introduce?
What is the current behavior?
If manifest file is missing, or logo isn't specified in manifest, the Package.Current.Logo property will return an invalid Uri
Also, because manifest wasn't read, each access for Logo and DisplayName will cause another attempt to read manifest file
What is the new behavior?
TryParsePackageManifest returns value indicating whether manifest was successfully read
TryParsePackageManifest will only execute the reading of manifest once
Package.Current.Logo is nullable Uri and will only return Uri if a logo path was provided
Copilot Summary
🤖 Generated by Copilot at 751c0c8
Refactored the
Package
class to improve manifest parsing and made theLogo
property nullable for unsupported platforms.PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Run
results.Other information
Internal Issue (If applicable):